﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderList.ascx.cs" Inherits="BuXiaChu.OrderDishes.Web.ServiceStation.Modules.OrderList" %>
<table class="list">
    <tr>
        <td>
            订单编号
        </td>
        <td>
            当前状态
        </td>
        <td>
            餐厅
        </td>
        <td>
            送餐地址
        </td>
        <td>
            操作
        </td>
    </tr>
    <% foreach (var item in pageDataList)
       {%>
    <tr onmouseover="this.style.backgroundColor='#F4F9FD'" onmouseout="this.style.backgroundColor=''" class="cursor" ondblclick="getOrderItemDetails(<%=item.OrderCode %>)">
        <td>
            <%= item.OrderCode %>
        </td>
        <td>
            <%=item.Status %>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(GetRestaurantName(item.OrderCode))%>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(item.Address)%>
        </td>
        <td>
            <a href="javascript:;" onclick="printOrder(<%=item.OrderCode %>)">打印</a> <a href="javascript:;" onclick="assignOrder(<%=item.OrderCode %>)">
                分配</a> <a href="javascript:;" onclick="sendMessage(<%=item.OrderCode %>)">短信</a>
        </td>
    </tr>
    <%} %>
</table>
